var e = require;
var t = module;
var o = exports;
var n;
function i(e, t) {
    return (i =
        Object.setPrototypeOf ||
        function (e, t) {
            return (e.__proto__ = t), e;
        })(e, t);
}
(o.__esModule = !0), (o.default = void 0);
var a = (function (e) {
    var t, o;
    function n() {
        return e.call(this) || this;
    }
    (o = e), ((t = n).prototype = Object.create(o.prototype)), (t.prototype.constructor = t), i(t, o);
    var a = n.prototype;
    return (
        (a.init = function () {
            this.env = window.h5api;
        }),
        (a.initAD = function () {
            this.createRewardedVideo(!1);
        }),
        (a.loadBanner = function () {}),
        (a.showBanner = function () {}),
        (a.hideBanner = function () {}),
        (a.loadInterstitial = function () {}),
        (a.showInterstitial = function () {}),
        (a.hideInterstitial = function () {}),
        (a.createRewardedVideo = function () {}),
        (a.loadRewardedVideo = function () {}),
        (a.showRewardedVideo = function (e) {
            this.env.canPlayAd(
                function (t) {
                    console.log("是否可播放广告", t.canPlayAd, "剩余次数", t.remain),
                        t.canPlayAd,
                        this.env.playAd(function (t) {
                            console.log("代码:" + t.code + ",消息:" + t.message),
                                1e4 === t.code || (10001 === t.code ? e && e(!0) : console.log("广告异常"));
                        });
                }.bind(this)
            );
        }),
        (a.hideRewardedVideo = function () {}),
        (a.shareAppMessage = function () {}),
        (a.makeShareUI = function (e, t, o, n, i) {
            void 0 === n && (n = 0), void 0 === i && (i = !1), t && t();
        }),
        (a.analytics = function () {}),
        (a.httpRequest = function (e, t) {
            t && t("h54399不允许外网连接", null, null);
        }),
        n
    );
})(((n = e("PGameBox4399")) && n.__esModule ? n : {default: n}).default);
(o.default = a), (t.exports = o.default);
